// import admin from "./routes/admin";
import lunw from "./routes/lunw";
import xue from "./routes/xue";
import reply from "./routes/reply";
import grade from "./routes/grade";
import paper from './routes/paper'
import correct from './routes/correct'
import gradeRegulate from './routes/gradeRegulate'
// console.log(admin,film);
const routes = [
  {
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "用户登录页面",
    },
  },
  {
    path: "/",
    component: () => import("@/views/admin/index.vue"),
    title: '用户登录页面'
  },

  {
    path: '/forgetPassword',
    component: () => import('@/views/login/ui/forgetPassword.vue'),
    meta: {
      title: '用户找回密码'
    },
  },
  {
    path: '/success',
    component: () => import('@/views/login/ui/success.vue'),
    meta: {
      title: '修成成功'
    },
  },

  {
    // 进入系统先看到首页
    path: '/dashoard',
    component: () => import('@/views/paper/index.vue'),
    meta: {
      title: "后台首页",
      islogin: true,
    },
    children: [...gradeRegulate, ...lunw, ...xue, ...reply, ...grade,...paper, ...correct,]
    // children2,
  },
  {
    path: "/:pathMatch(.*)",
    name: "notfound",
    component: () => import("@/views/notfound/index.vue"),
    meta: {
      title: '404页面'
    }
  }
]
// console.log(routes)
export default routes
